<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui">

<h:head>



	<style type="text/css">
.info,.success,.warning,.error {
	border: 1px solid;
	margin: 15px 0px;
	padding: 15px 20px 15px 55px;
	width: 500px;
	font: bold 12px verdana;
	-moz-box-shadow: 0 0 5px #888;
	-webkit-box-shadow: 0 0 5px #888;
	box-shadow: 0 0 5px #888;
	text-shadow: 2px 2px 2px #ccc;
	-webkit-border-radius: 15px;
	-moz-border-radius: 15px;
	border-radius: 15px;
}

.info {
	color: #00529B;
	background: #BDE5F8
		url('http://www.bookofzeus.com/source/icon-info.png') no-repeat 10px
		center;
}

.success {
	color: #4F8A10;
	background: #DFF2BF
		url('http://www.bookofzeus.com/source/icon-tick.png') no-repeat 10px
		center;
}

.warning {
	color: #9F6000;
	background: #FEEFB3
		url('http://www.bookofzeus.com/source/icon-warning.png') no-repeat
		10px center;
}
</style>

</h:head>
<h:body>

	<div align="center" style="margin-top: 260px">
		<div class="warning">Credenziali inserite non valide. Riprovare</div>
	</div>

	<h:form id="login"
		onsubmit="document.getElementById('login').action='j_security_check';"
		prependId="false">
		<p:panelGrid columns="2" style="margin: 0 auto; margin-top: 50px">
			<f:facet name="header">  
        		Basic PanelGrid  
    		</f:facet>

			<p:outputLabel for="j_username" value="Username" />
			<p:inputText id="j_username" name="j_username" required="true"
				requiredMessage="Inserisci username" />
			<p:outputLabel for="j_password" value="Password" />
			<p:password id="j_password" name="j_password" required="true"
				requiredMessage="Inserisci password" />


			<f:facet name="footer">
				<p:commandButton type="submit" value="Login" icon="ui-icon-check"
					style="margin:0" ajax="false" />
			</f:facet>
		</p:panelGrid>
	</h:form>


</h:body>
</html>
